Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove support for legacy RSpec matchers (pre 3) #1253

Merged
merged 2 commits into from
Jan 8, 2021
Merged

Conversation

pirj
Copy link
Member

@pirj pirj commented Dec 24, 2020

  1. Remove support for legacy RSpec 1&2 matchers

As per http://rspec.info/blog/2013/07/the-plan-for-rspec-3/:

compatibility layer so that existing matchers will continue to work, with the plan to remove that compatibility layer in RSpec 4

  1. Remove deprecated LegacyMacherAdapter (with typo)

@pirj pirj self-assigned this Dec 24, 2020
@pirj pirj requested a review from JonRowe December 24, 2020 08:36
@pirj pirj added the rspec 4 label Dec 24, 2020
def include_chain_clauses_in_custom_matcher_descriptions?
@include_chain_clauses_in_custom_matcher_descriptions ||= false
@include_chain_clauses_in_custom_matcher_descriptions
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

||= true obviously doesn't work when false is assigned explicitly.

@pirj pirj force-pushed the remove-monkey-patching branch 2 times, most recently from b330730 to 2926bc9 Compare December 25, 2020 14:02
Copy link
Member

@JonRowe JonRowe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Minor change log tweak

Changelog.md Outdated Show resolved Hide resolved
@JonRowe
Copy link
Member

JonRowe commented Dec 25, 2020

Some how the last change has messed up the history to include all the other changes?

@pirj pirj marked this pull request as draft December 25, 2020 21:01
@pirj
Copy link
Member Author

pirj commented Dec 25, 2020

I've branched this PR off #1245, so this is as expected.

History needs some commit juggling anyway. I want to spread the Changelog changes over commits. Also, the base PR was fixed up, so a rebase on it will be needed.

Can't tell for sure, but I believe there might be some overlapping changes. Converted this to draft until #1245 is merged.

@JonRowe JonRowe force-pushed the remove-monkey-patching branch 3 times, most recently from 1ab4671 to e8e8bfc Compare December 31, 2020 14:50
Base automatically changed from remove-monkey-patching to 4-0-dev December 31, 2020 15:33
As per http://rspec.info/blog/2013/07/the-plan-for-rspec-3/:

> compatibility layer so that existing matchers will continue to work, with the plan to remove that compatibility layer in RSpec 4
@pirj pirj changed the title Remove deprecations and set new config defaults Remove legacy RSpec1&RSpec2 matcher support Jan 8, 2021
@pirj pirj added this to the 4.0 milestone Jan 8, 2021
@pirj pirj mentioned this pull request Jan 8, 2021
53 tasks
@pirj pirj changed the title Remove legacy RSpec1&RSpec2 matcher support Remove support for legacy RSpec matchers (pre 3) Jan 8, 2021
@pirj pirj marked this pull request as ready for review January 8, 2021 23:32
@pirj pirj merged commit c167e5f into 4-0-dev Jan 8, 2021
@pirj pirj deleted the remove-deprecations branch January 8, 2021 23:40
yujinakayama pushed a commit to yujinakayama/rspec-monorepo that referenced this pull request Oct 19, 2021
…rspec/remove-deprecations

Remove support for legacy RSpec matchers (pre 3)

---
This commit was imported from rspec/rspec-expectations@c167e5f.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants